﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Xant.FlowEngine.Core
{
    /// <summary>
    /// 活动变迁
    /// </summary>
    public sealed class Transition : AbstractFlowObject
    {
        //private string description;

        public int Type { get; set; }

        public string Label { get; set; }

        public string BizRule { get; set; }

        public Guid FromActivityId { get; set; }

        public Guid ToActivityId { get; set; }

        public AbstractActivity From { get; set; }

        public AbstractActivity To { get; set; }

        #region 构造函数
        public Transition(AbstractActivity from, AbstractActivity to)
        {
            this.From = from;
            this.To = to;
        }

        #endregion

    }
}
